package org.df.ulab.bot.plugins.xmpp;

import org.df.ulab.bot.api.message.ImMessage;
import org.df.ulab.bot.api.message.ImStatus;
import org.df.ulab.bot.api.message.ImStatusMessage;
import org.df.ulab.bot.util.message.BaseMessage;

/**
 * @author Daniel Filgueiras
 * @since 19/06/2011
 */
class XmppStatusMessage extends BaseMessage implements ImMessage, ImStatusMessage {

	public static final String PRESENCE_CHANGE = "[Presence]";
	private String		remoteId;
	private ImStatus	status;
	
	public XmppStatusMessage(String remoteId, ImStatus status) {
		super(PRESENCE_CHANGE + remoteId + "/" + status);
		this.remoteId = remoteId;
		this.status = status;
	}
	
	@Override
	public ImStatus getStatus() {
		return status;
	}

	@Override
	public String getRemoteId() {
		return remoteId;
	}

}
